package com.angus.api.content.domain;

import com.angus.common.core.web.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * @author lineCode
 * @date 2025-08-17
 * @description 订单佣金
 */
@Data
@TableName("sys_order_commission")
@EqualsAndHashCode(callSuper=false)
public class OrderCommission extends BaseEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /** 订单ID */
    private String orderNo;

    /** 客户ID */
    private Long userId;


    /** 课程CODE */
    private String courseCode;

    /** 付款金额 */
    private BigDecimal courseAmount;


    /** 推荐码 */
    private String recommendCode;

    /**
     * 佣金比例
     */
    private BigDecimal commissionRate;

    /**
     * 佣金金额
     */
    private BigDecimal commissionAmount;

    private String nickName;

    private String courseName;

}
